import request from '@/utils/request';

export function getAuditList(query) {
	return request({
		url: '/mall/audit/list',
		method: 'post',
		data: query,
	});
}
export function exportAudit(query) {
	return request({
		url: '/mall/audit/export',
		method: 'post',
		data: query,
	});
}
export function getInfo(query) {
	return request({
		url: '/mall/audit/getInfo',
		method: 'post',
		data: query,
	});
}
export function audit(query) {
	return request({
		url: '/mall/audit/auditResult',
		method: 'post',
		data: query,
	});
}
export function getStatistics() {
	return request({
		url: '/mall/audit/statistics',
		method: 'post',
	});
}
export function getSettingInfo(query) {
	return request({
		url: '/system/withdrawConfig/list',
		method: 'post',
		data: query,
	});
}
export function editSettingInfo(query) {
	return request({
		url: '/system/withdrawConfig/edit',
		method: 'post',
		data: query,
	});
}

export function addSettingInfo(query) {
	return request({
		url: '/system/withdrawConfig/add',
		method: 'post',
		data: query,
	});
}

/////////////////////////////////供应商提现

export function getSupplierAuditList(query) {
	return request({
		url: '/mall/supplierAudit/list',
		method: 'post',
		data: query,
	});
}
export function supplierAudit(query) {
	return request({
		url: '/mall/supplierAudit/auditResult',
		method: 'post',
		data: query,
	});
}

export function getSupplierAuditStatistics() {
	return request({
		url: '/mall/supplierAudit/statistics',
		method: 'post',
	});
}
export function getSupplierInfo(data) {
	return request({
		url: '/mall/supplierAudit/getInfo',
		method: 'post',
		data: data,
	});
}

/////////////////////////////////店铺提现

export function getStoreAuditList(query) {
	return request({
		url: '/mall/storeAudit/list',
		method: 'post',
		data: query,
	});
}
export function storeAudit(query) {
	return request({
		url: '/mall/storeAudit/auditResult',
		method: 'post',
		data: query,
	});
}

export function getStoreAuditStatistics() {
	return request({
		url: '/mall/storeAudit/statistics',
		method: 'post',
	});
}
export function getStoreInfo(data) {
	return request({
		url: '/mall/storeAudit/getInfo',
		method: 'post',
		data: data,
	});
}
